#!/usr/bin/python
import os

thread_num_list = [1, 2, 4, 8, 16, 32, 64]
size_list = [1000, 2000, 4000, 8000 ]

if __name__ == "__main__":
	for size in size_list:
		for thread_num in thread_num_list:
			cmd = "./gauss_elim -s " + str(size) +" -t " + str(thread_num) + " >> result.txt" 
			os.system(cmd)
			os.system('echo >> result.txt')
			os.system('echo ------------------------------------- >> result.txt')
